package com.itheima.social.securitys.service;

import com.itheima.social.securitys.pojo.Archive;
import com.itheima.social.securitys.pojo.ArchiveDetail;

import java.util.List;

/**
 * @author qiankaofei
 * @version 1.0
 * @date 2020/12/6 17:46
 */
public interface ArchiveService {

    /**
     * 根据企业id和年月查询社保归档
     */
    Archive findArchiveByCompanyIdAndYearMonth(String companyId, String yearMonth);

    /**
     * 根据历史归档id查询历史归档明细
     */
    List<ArchiveDetail> findArchiveDetailByArchiveId(String id);

    /**
     * 当月未归档
     */
    List<ArchiveDetail> getReports(String companyId, String yearMonth) throws Exception;

    /**
     * 设置归档
     */
    void setArchive(String yearMonth, String companyId) throws Exception;

    /**
     *  查询某年内社保归档列表
     */
    List<Archive> findHistoryArchiveList(String year,String companyId);

    /**
     * 根据用户id和考勤年月查询用户考勤归档明细
     */
    ArchiveDetail findArchiveDetailListByYearMonthAndUserId(String userId, String yearMonth);
}
